//
//  ColorConfig.h
//  bus
//
//  Created by hychen on 17/3/30.
//  Copyright © 2017年 Hychen. All rights reserved.
//

#ifndef ColorConfig_h
#define ColorConfig_h

#define RGB(r,g,b) Color_RGB(r,g,b)
#define RGBA(r,g,b,a) Color_RGBA(r,g,b,a)
// 取色值相关的方法
#define Color_RGB(r,g,b)          [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:1.f]

#define Color_RGBA(r,g,b,a)       [UIColor colorWithRed:(r)/255.f green:(g)/255.f blue:(b)/255.f alpha:(a)]

#define Color_Hex(rgbValue) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 \
green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 \
blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:1.0]

#define kRandomColor    KRGBColor(arc4random_uniform(256)/255.0,arc4random_uniform(256)/255.0,arc4random_uniform(256)/255.0)

//背景颜色
#define Color_Background        Color_RGB(237, 244, 253)
#define Color_Background_grey   Color_RGB(248,248,248)
#define Color_Theme             Color_RGB(55,207,144)
#define Color_Line              Color_RGB(244,244,244)
#define ColorSepLine Color_RGB(238, 244, 252)

#define ColorDefalutBrown RGB(80,60,40)
#define ColorNewGreen [UIColor colorWithRed:107.0/255 green:200.0/255 blue:175.0/255 alpha:1.0]
#define ColorDefalutGray [UIColor colorWithRed:167.0/255 green:160.0/255 blue:157.0/255 alpha:1.0]


#define kWhiteColor [UIColor whiteColor]
#define kBlackColor [UIColor blackColor]

#define kPieChartDescColor kBlackColor

#define Color_LineWorking Color_RGB(47,218,140)
#define Color_LineFinish  Color_RGB(0,193,224)
#define Color_LineTodo    Color_RGB(255,36,48)
#define Color_NavBgColor  Color_RGB(0, 123, 179)
#endif /* ColorConfig_h */
